#include <iostream>
#include <vector>
#include "matrix_1d.h"
#include "matrix_2d.h"
#include "file/my_file.h"
#include "other.h"
#include "pytranscpp/sample.h"
#include "gaussian.h"
using namespace std;

void test_matrix_sub();

void test_matrix_mul();

void test_2dmatrixadd();

int main() {
//    my_file();
//    outfile();
//    trans();
//    string n1 = "wkx";
//    string n2 = "wkx";
//    if (n1 == n2){
//        cout<<"++++++++++++++++"<<endl;
//    }
//    cout<< n1 <<endl;
//    cout<< n2 <<endl;
    test_gaussian();
    return 0;
}

void test_2dmatrixadd() {/*5行3个2*/
    vector<vector<int>> v1(5, vector<int>(3, 2));
    vector<vector<int>> v2(5, vector<int>(3, 26));
    vector<vector<int>> result;
    result = add2d(v1, v2);
    pprint(v1);
    pprint(v2);
    pprint(result);
}


void test_matrix_sub() {
    vector<float> v1(3);
    v1[0] = 5;
    v1[1] = 10;
    v1[2] = 27;

    vector<float> v2(3);
    v2[0] = 3;
    v2[1] = 17;
    v2[2] = 12;

    vector<float> v3 = sub(v1, v2);
    for (float i:v3) {
        cout << i << endl;
    }
}

void test_matrix_mul() {
    vector<float> v1(3);
    v1[0] = 5;
    v1[1] = 10;
    v1[2] = 27;

    vector<float> v2(3);
    v2[0] = 3;
    v2[1] = 17;
    v2[2] = 12;
    vector<float> v4 = mul(v1, v2);

    for (float i:v4) {
        cout << i << endl;
    }
}
